package com.fx.pojo;

/**
 * @author: 梁峰源
 * @date: 2021/10/7 11:42
 * Description:这是一个JavaBean
 */
public class IotBean {
    private String id;//数据索引，为主键
    private String QuerySensorType;//传感器类型
    private String QueryStartTime;//数据存入数据库的时间
    private String illumination;//光照强度
    private String temperature;//温度
    private String humidity;//湿度

    public IotBean() {
    }

    public IotBean(String querySensorType, String queryStartTime, String illumination, String temperature, String humidity) {
        QuerySensorType = querySensorType;
        QueryStartTime = queryStartTime;
        this.illumination = illumination;
        this.temperature = temperature;
        this.humidity = humidity;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getQuerySensorType() {
        return QuerySensorType;
    }

    public void setQuerySensorType(String querySensorType) {
        QuerySensorType = querySensorType;
    }

    public String getQueryStartTime() {
        return QueryStartTime;
    }

    public void setQueryStartTime(String queryStartTime) {
        QueryStartTime = queryStartTime;
    }

    public String getIllumination() {
        return illumination;
    }

    public void setIllumination(String illumination) {
        this.illumination = illumination;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    @Override
    public String toString() {
        return "IotBean{" +
                "id='" + id + '\'' +
                ", QuerySensorType='" + QuerySensorType + '\'' +
                ", QueryStartTime='" + QueryStartTime + '\'' +
                ", illumination='" + illumination + '\'' +
                ", temperature='" + temperature + '\'' +
                ", humidity='" + humidity + '\'' +
                '}';
    }
}
